import React, { useEffect } from 'react'
import './Css/Trend.css'
import * as echarts from 'echarts';
export default function Trend(props) {
    const { name, onetable, twotable, onebox, twobox } = props
    useEffect(() => {
        onebox()
        twobox()
    }, [])

    return (
        <div>
            <p style={{ padding: '0.4rem', fontSize: '0.3rem' }}>{name}</p>
            <div className='JJJ'>
                <div className='main1' id={onetable}>
                </div>
                <div className='main1' id={twotable}>
                </div>
            </div>

        </div>
    )
}
